package com.bw.module_merchant.adapter

import android.widget.TextView

import com.bw.module_merchant.entity.EnterpriseRecordEntity

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_merchant.R


class ApproveAdapter: BaseQuickAdapter<EnterpriseRecordEntity, BaseViewHolder>(R.layout.item_approve) {
    override fun convert(holder: BaseViewHolder, item: EnterpriseRecordEntity) {
        holder.getView<TextView>(R.id.approve_number).setText(item.applicationNumber)
        holder.getView<TextView>(R.id.approve_time).setText(item.entryTime)
        if (item.status == "新建"){
            holder.getView<TextView>(R.id.status).setText("未确认")
        }else{
            holder.getView<TextView>(R.id.status).setText("已确认")
        }
    }
}